home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Magazin/MacEasy 40
/
Mac Magazin and MacEasy Magazine CD - Issue 40.iso
/
Software
/
Online
/
Create Eudora
/
Create Eudora Folder.txt
< prev
next >
Wrap
Text File
|
1997-11-19
|
2KB
|
57 lines
tell application "Finder"
activate
if exists application file id "CSOm" then
try
first process whose creator type is "CSOm"
display dialog ¬
"First you need to Quit the Eudora that's currently running." buttons {"OK"} ¬
default button 1 ¬
with icon 1
on error
set whiner to display dialog "Please enter your name:" default answer ""
if button returned of whiner is not "Cancel" then
set fn to text returned of whiner
if (offset of ":" in fn) ≠ 0 then
display dialog ¬
"Try again without colons." buttons {"OK"} ¬
default button 1 ¬
with icon 0
else
if fn = "" then
set fn to "Eudora Folder"
else
set fn to fn & "'s Eudora Folder"
end if
if fn's length > 31 then
display dialog ¬
"Try again with a shorter name." buttons {"OK"} ¬
default button 1 ¬
with icon 0
else
set there to desktop -- customize if needed
if exists item fn of there then
display dialog ¬
"Try again with a different name." buttons {"OK"} ¬
default button 1 ¬
with icon 1
else
try
open (make file at (make folder at there with properties {name:fn}) ¬
with properties {name:"Eudora Settings", file type:"PREF", creator type:"CSOm"})
on error
beep
end try
end if
end if
end if
end if
end try
else
display dialog ¬
"I can't find the Eudora application." & return & return ¬
& "Either it's not installed or the Desktop Database needs to be rebuilt." buttons {"OK"} ¬
default button 1 ¬
with icon 0
end if
end tell